using Business.InventoryquantityManagement;
using Business.InventoryquantityManagement.Dto;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.AspNetCore.Mvc;

namespace Business.Controllers
{
    [RemoteService]
    [Area("Business")]
    [Route("api/business/Inventoryquantity")]
    public class InventoryquantityController : AbpController
    {
        private readonly IInventoryquantityAppService _InventoryquantityAppService;

        public InventoryquantityController(IInventoryquantityAppService InventoryquantityAppService)
        {
            _InventoryquantityAppService = InventoryquantityAppService;
        }

        [HttpPost]
        [Route("data-post")]
        public Task<InventoryquantityDto> DataPost(CreateOrUpdateInventoryquantityDto input)
        {
            return _InventoryquantityAppService.DataPost(input);
        }

        [HttpPost]
        [Route("delete")]
        public Task Delete(List<Guid> ids)
        {
            return _InventoryquantityAppService.Delete(ids);
        }

        [HttpGet]
        [Route("{id}")]
        public Task<InventoryquantityDto> Get(Guid id)
        {
            return _InventoryquantityAppService.Get(id);
        }

        [HttpGet]
        public Task<PagedResultDto<InventoryquantityDto>> GetAll(GetInventoryquantityInputDto input)
        {
            return _InventoryquantityAppService.GetAll(input);
        }
    }
}
